package com.yfq.test;

import com.yfq.springframework.beans.annotation.Autowired;
import com.yfq.springframework.stereotype.Component;

/**
 * @author 姚凤桥
 * @date 2023/2/5 17:11
 * @description
 */
@Component
public class UserServiceImpl implements UserService {
    private String token;

    @Autowired
    private UserDao userDao;

    @Override
    public String getUsername(String id) {
        return userDao.getUsername(id);
    }

    @Override
    public String getToken() {
        return token;
    }


    public void setToken(String token) {
        this.token = token;
    }
}
